/*
 * Copyright 2017 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../scss/components/Terminal/mixins';

.kui--input-stripe {
  display: flex;
  flex-grow: 0;
  flex-basis: 2.125rem;
  background-color: var(--color-stripe-01);
  box-shadow: 0 -3px 10px 0 rgba(60, 60, 60, 0.1);

  @include Block {
    position: unset;
    display: flex;
    flex: 1;
    padding: 0;
    margin: 0;

    .repl-context {
      display: flex;
    }

    @include BlockInput {
      flex: 1;
      padding: 0;

      @include ContextAndInput {
        font-size: 0.875rem;
        flex: 1;
        padding: 0.5rem 0.375rem;
        align-items: unset;

        @include Input {
          background-color: transparent;
        }
      }
    }

    .repl-prompt {
      border: none;
      padding: 0.5rem 0.375rem;
    }

    .kui--tab-completions {
      /* position tab completions in a way that doesn't result in a reflow of the input stripe */
      position: absolute;
      width: 100%;
      display: flex;
      overflow-x: auto;

      .kui--tab-completions--option {
        overflow: unset;
        .bx--btn--primary:focus {
          /* make a tab completion option appear attached to the <input> element */
          border-radius: 0 0 4px 4px;
        }
      }
    }
  }
}

/* not sure what this is for .kui--input-stripe .repl-input-like {
  overflow: unset;
} */
